package com.autumn.platform.dao.schema.mapper.optional;

import java.util.List;
import java.util.Optional;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.cursor.Cursor;

import com.autumn.platform.dao.annotation.SqlRef;
import com.autumn.platform.dao.schema.mapper.ParamDefine;

@Mapper
public interface OptionalDao {

    @SqlRef("select")
    public Optional<ParamDefine> selectOne(@Param("paramCode") String paramCode);

    @SqlRef("select")
    public Optional<List<ParamDefine>> selectList();

    @SqlRef("select")
    public Optional<Cursor<ParamDefine>> selectCursor();
}
